package com.lzh.farmersshop.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Orderdetails)实体类
 *
 * @author makejava
 * @since 2024-01-04 15:37:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orderdetails implements Serializable {
    private static final long serialVersionUID = -82791828915453548L;
    /**
     * 订单详情id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商品id
     */
    private Integer goodsid;
    /**
     * 订单号
     */
    private Long ordernum;
    /**
     * 购买商品名称
     */
    private String goodsname;
    /**
     * 购买的商品价格
     */
    private BigDecimal goodsprice;
    /**
     * 总价格
     */
    private BigDecimal sumprice;
    /**
     * 购买商品数量
     */
    private Integer num;
    /**
     * 1正常2已删除
     */
    private Integer isdelete;
    /**
     * 商品图片
     */
    @TableField(exist = false)
    private String img;
    /**
     * 商品描述
     */
    @TableField(exist = false)
    private String describe;


}
